package com.enzoism.springboot.designpattern.a02decorate;

public class DecorateClassB extends DecorateClass{
    public DecorateClassB(DecorateInterface decorateInterface) {
        super(decorateInterface);
    }

    @Override
    public void display() {
        DecorateReal decorateReal = (DecorateReal) super.decorateInterface;
        decorateReal.decorateName = "梵高";
        super.display();
    }
}
